package cn.tedu.com.impl;

import cn.tedu.com.bean.UserInfo;
import cn.tedu.com.dao.mapper.dao.UserInfoMapper;
import cn.tedu.com.service.IQuertUserInfo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class QueryUserInfoImpl implements IQuertUserInfo {
    @Autowired
    private UserInfoMapper userInfoMapper;
    @Override
    public List<UserInfo> queryUserInfos() {
        List<UserInfo> userInfos = userInfoMapper.selectUsers();
        return userInfos;
    }

    @Override
    public UserInfo selectLogin(UserInfo userInfo) {
        UserInfo userInfo1 = userInfoMapper.selectLogin(userInfo);
        return userInfo1;
    }
}
